'use strict';

const path = require('path');
const root = path.resolve(__dirname, '..');
const baseStyleguide = path.join(root, 'docs', 'styleguide');

/**
 * Serve static directories, for development purpose.
 *
 * @method styleguideServer
 */
function styleguideServer(gulp, plugins) {
  plugins.connect.server({
    root: [baseStyleguide, root],
    livereload: true,
  });
}

module.exports = styleguideServer;
